<template>
<!--  个人中心-->
  <div class="user-center">
    <div class="user">
      <div class="left">
        <div class="title">
          <span class="el-icon-user"></span>
          会员中心
        </div>
        <div class="menu-list">
          <el-menu
            default-active="2"
            class="el-menu-vertical-demo">
            <el-menu-item index="/user/userInformation">
              <span slot="title">个人信息</span>
            </el-menu-item>
            <el-menu-item index="1">
              <span slot="title">我的账户</span>
            </el-menu-item>
            <el-menu-item index="3" disabled>
              <span slot="title">导航三</span>
            </el-menu-item>
            <el-menu-item index="4">
              <span slot="title">导航四</span>
            </el-menu-item>
          </el-menu>
        </div>
      </div>
      <div class="right">
        <router-view/>
      </div>
    </div>
  </div>
</template>

<script>
import { userUpdate , logout , userAvatarUpdate } from '../../api'
import Qs from 'qs'
export default {
  name: 'User',
  data () {
    return {
      imageUrl: '',
      genderType: '',
      genders: [{
        value: '0',
        label: '女'
      }, {
        value: '1',
        label: '男'
      }],
      value: '',
      userJson: ''
    }
  },
  created () {
    console.log(this.$store.state.user)
  }
}
</script>

<style scoped lang="less">
.user-center {
  width: 100%;
  padding: 0;
  background-color: #f4f4f4;
  margin-top: 0;
  .user{
    width: 980px;
    margin: 0 auto;
    height: 1000px;
    display: flex;
    justify-content: space-between;
    background-color: #f4f4f4;
    padding-top: 32px;
    .left{
      width: 25%;
      height: 100%;
      background-color: white;
      border-radius: 5px;
      .title{
        font-size: 14px;
        font-weight: bold;
        line-height: 38px;
        text-align: left;
        padding: 20px;
        padding-bottom: 0;
        .el-icon-user{
          font-size: 18px;
        }
      }
    }

    .right{
      width: 73%;
      height: 100%;
      background-color: white;
      border-radius: 5px;
    }
  }
}


  /*.avatar-uploader .el-upload {
    border: 1px dashed #d9d9d9;
    border-radius: 6px;
    cursor: pointer;
    position: relative;
    overflow: hidden;
  }
  .avatar-uploader .el-upload:hover {
    border-color: #409EFF;
  }
  .avatar-uploader-icon {
    font-size: 28px;
    color: #8c939d;
    width: 178px;
    height: 178px;
    line-height: 178px;
    text-align: center;
  }
  .avatar {
    width: 178px;
    height: 178px;
    display: block;
  }*/
</style>
